package com.xy.lang.domain;

/**
 *
 */
public class IntegerHolder extends Holder<Integer> {

    public IntegerHolder() {
        super();
    }

    public IntegerHolder(Integer value) {
        super(value);
    }

    public int increment(int delta) {
        if(!isPresent()) {
            this.value = 0;
        }
        this.value += delta;
        return this.value;
    }

}
